Expand description
unicode_categories
is a crate that adds extensions to the
char
primitive type that allow for a char to be queried
about whether or not it belongs to a particular Unicode category.
These extensions exist on the UnicodeCategories
trait, so
by importing it the extensions will be active on all chars:
use unicode_categories::UnicodeCategories;
assert!('a'.is_letter_lowercase());
assert!('A'.is_letter_uppercase());
assert!('\n'.is_other_control());
UnicodeCategories
is the only item contained exported
by this crate and contains all of methods that allow
for category queries.